package com.share;

public enum ResultCode {

    SUCCESS(1),
    ERROR(0),
    REQUIRE_LOGIN(100); // 没有登陆




    public int getCode() {
        return code;
    }


    int code;
    ResultCode(int code){
        this.code = code;
    }

    public static void main(String[] args) {
        System.out.println(ResultCode.SUCCESS.toString());
    }
}
